package com.framework.auth.pay.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@FeignClient(value = "pay-service")
public interface PaypalApi {
    String REQUEST_PREFIX = "/pay";

    @RequestMapping(value = REQUEST_PREFIX + "/test", method = RequestMethod.POST)
    @ResponseBody
    Map<String,Object> test();
}
